#pragma once

#define MIN(A,B) A>B?B:A

class ReservedBufferWriter
{
	friend class WriteableMonitorBuffer;

private: 
	ReservedBufferWriter();
private: 
	~ReservedBufferWriter();
public: 
	void * m_pFirstBlock;
	XUINT32 m_firstBlockSize;
	void * m_pSecondBlock;
	XUINT32 m_secondBlockSize;
	XUINT32 m_offset;
	void Initialize();
	void SetType(XUINT32 type);
	void WriteBytes(XUINT32 cSize, void * pSource);
};

